import { createApp } from 'vue';
import App from './App.vue';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import './assets/global.css';
import axios from 'axios';
import router from './router';
// 引入 Pinia 并注册
import { createPinia } from 'pinia';

const app = createApp(App);
app.config.globalProperties.$axios = axios;
app.config.globalProperties.$httpUrl = 'http://localhost:8090';
app.use(router);
app.use(createPinia());
app.use(ElementPlus, { size: 'small' });
app.mount('#app');
